package com.moli.iov.his.model.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 门店、中转库全网在线车辆统计
 * </p>
 *
 * @author lxy
 * @since 2019-06-17
 */
@Data
public class ReportStoreTotalOnline implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    /**
     * 在网总车辆数
     */
    private Long totalCount;

    /**
     * 在网车辆上线数
     */
    private Long onlineCount;

    /**
     * 统计时间范围
     */
    @JsonFormat(pattern="MM-dd")
    private Date statTime;

    /**
     * 删除标识
     */
    private Integer isDelete;

    /**
     * 上线率
     */
    private BigDecimal onlineRate;

    /**
     * 门店、中转库code
     */
    private String storeCode;

    public ReportStoreTotalOnline(Long totalCount, Long onlineCount, BigDecimal onlineRate,String storeCode) {
        this.totalCount = totalCount;
        this.onlineCount = onlineCount;
        this.onlineRate = onlineRate;
        this.storeCode=storeCode;
    }

    public ReportStoreTotalOnline(){}

    @Override
    public String toString() {
        return "ReportStoreTotalOnline{" +
        "id=" + id +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        ", totalCount=" + totalCount +
        ", onlineCount=" + onlineCount +
        ", statTime=" + statTime +
        ", isDelete=" + isDelete +
        ", onlineRate=" + onlineRate +
        ", storeCode=" + storeCode +
        "}";
    }
}
